import React from "react";
import style from "./index.less";

interface Props {
  loading?: boolean;
}

export default function Loading({ loading }: Props) {
  return loading ? (
    <div className={style.spainner}>
      <div></div>
      <div></div>
      <div></div>
      <div></div>
      <div></div>
      <div></div>
      <div></div>
      <div></div>
      <div></div>
      <div></div>
      <div></div>
      <div></div>
    </div>
  ) : null;
}
